<?php
/**
 * The Template for displaying all single posts
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */

get_header(); ?>
<?php if ( have_posts() ) : ?>

			<?php
			/* Start the Loop */
			while ( have_posts() ) : the_post();
?>
	<div id="primary" class="site-content">
		<div id="detailview" role="main" class="twocolumn">
		<h1 class="detail-title"><img src="<?php echo the_icon_image_url(get_the_ID());?>" class="software-icon"><?php the_title(); ?>
		  <em><?php echo get_post_meta(get_the_ID(), 'soft_version', true);?></em>

                                    <i><?php echo get_post_meta(get_the_ID(), 'soft_title_description', true);?></i>

            </h1>
			<div class="download-info top">

                    <a id="DownloadButtonTop" title="Download Mr.Shot" href="<?php echo get_site_url();?>/download/<?php the_slug();?>" class="download-button">

                        <span>Tải về</span></a>

                                

            </div>
			<ul class="detail-info">
                    <li class="publisher-info">
                        <span class="item-label">Phát hành:</span>
                        <a href="<?php echo get_the_publisher_link();?>" target="_blank" rel="nofolow">
                            <?php echo get_the_publisher_name();?>
                        </a>
                    </li>

                                    <li class="version-info">

                        <span class="item-label">Version:</span>

                        <span class="item-info"><?php echo get_post_meta(get_the_ID(), 'soft_version', true);?></span>

                    </li>

                <li class="license-info">

                    <span class="item-label">Sử dụng:</span>

                    <span class="item-info"><span class="<?php echo get_the_license_slug();?>"><?php echo get_the_license_name();?></span>

</span>

                </li>

                    <li class="filesize-info">

                        <span class="item-label">Dung lượng:</span>

                        <span class="item-info"><?php echo get_post_meta(get_the_ID(), 'soft_filesize', true);?></span>

                    </li>

                <li class="dateadded-info clearfix">

                    <span class="item-label">Ngày phát hành:</span>

                    <span class="item-info"><?php echo get_the_time(); ?></span>

                </li>

                <li class="dateadded-info clearfix">

                    <span class="item-label">Ngày cập nhật:</span>

                    <span class="item-info"><?php the_modified_time(); ?></span>

                </li>				



                    <li class="requirements-info">

                        <span class="item-label">Yêu cầu:</span>

                        <span class="item-info"><?php echo get_post_meta(get_the_ID(), 'soft_requirements_os', true);?></span>

                    </li>

            </ul>
			<div class="screenshots">

                    <a class="item-image" href="<?php the_permalink(); ?>">
		<?php the_post_thumbnail('index-hot-thumb'); ?>
                    </a>

            </div>
			<div class="clear">

            </div>
			<div class="content-overview">

                    <div class="detail-content"><?php the_content();?></div>

                    <div class="clear"></div>

           </div>
			
		<div class="publisher-softwares">
        <a href="<?php echo get_the_publisher_link();?>">Xem các phần mềm khác của <em><?php echo get_the_publisher_name();?></em></a> </div>
		<div class="content-tags">
		<?php the_tags('Tags: ',', '); ?>
		</div>
		</div><!-- #content -->
	</div><!-- #primary -->
<?php endwhile;?>
<?php endif;?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>